package com.biz.primus.ms.member.dao.po;

import com.biz.primus.model.member.inter.INotice;
import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 消息
 *
 * @author jun.liu
 * @date 2017年10月22日
 * @reviewer
 * @see
 */
@Entity
@Table(name = "member_notice")
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class Notice extends BaseEntity implements INotice
{

    private static final long serialVersionUID = -426420279478982549L;

    /**
     * 消息标题
     */
    @Column(nullable = false)
    private String title;

    /**
     * 点击消息跳转地址
     */
    @Column
    private String url;

    /**
     * 消息内容
     */
    @Column(columnDefinition = "MEDIUMTEXT")
    private String content;

}
